#include "comm.h"


comm::comm()
{
	mBuf = new ringbuffer(MAXBUFLEN);
	if(!mBuf){
		perror("Malloc buffer\n");
	}

	sem_init(&mSemCanRead, 0, 0);
}

comm::~comm()
{
	free(mBuf);
}

sem_t *comm::get_semaphore()
{
	return &mSemCanRead;
}
